<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('CakePHP'); ?>
		<?php echo $title_for_layout; ?>
        // comment goes here
	</title>
    
	<?php
		echo $this->Html->meta('icon');
		//echo $this->Html->css('cake.generic');
        //echo $this->Html->script('jquery.js');
		echo $scripts_for_layout;


        //css files

        echo $this->Html->css('reset');
        echo $this->Html->css('grid');
        echo $this->Html->css('style');
        echo $this->Html->css('messages');
        echo $this->Html->css('forms');
        echo $this->Html->css('fullcalendar');
        echo $this->Html->css('custom');
        echo $this->Html->css('tables');
        echo $this->Html->css('ui-timepicker');

        //scripts
        echo $this->Html->script('jquery.js');
        //echo $this->Html->script('jquery-1.5.2.min.js');
        echo $this->Html->script('jquery.tools.min.js');
        echo $this->Html->script('global.js');
        echo $this->Html->script('fullcalendar.js');
        echo $this->Html->script('gcal.js');
        echo $this->Html->script('jquery.ui.min.js');
        echo $this->Html->script('ui.timepicker.js');


        // force browsers to like html 5

	?>
        <!--[if lt IE 8]><?php echo $this->Html->css('ie', array('media' => 'print'));?><![endif]-->
        <!--[if lt IE 9]>
        <?php
        echo $this->Html->script('html5.js');
        echo $this->Html->script('PIE.js');
        echo $this->Html->script('IE9.js');
        echo $this->Html->script('ie.js');
        ?>
    <![endif]-->

<script>
$(document).ready(function(){
    $.tools.validator.fn("#username", function(input, value) {
        return value!='Username' ? true : {
            en: "Please complete this mandatory field"
        };
    });

    $.tools.validator.fn("#UserEmailAddress", function(input, value) {
        return value!='Username' ? true : {
            en: "Please complete this mandatory field"
        };
    });

    $.tools.validator.fn("#password", function(input, value) {
        return value!='Password' ? true : {
            en: "Please complete this mandatory field"
        };
    });

    $("#form").validator({
    	position: 'top',
    	offset: [25, 10],
    	messageClass:'form-error',
    	message: '<div><em/></div>' // em element is the arrow
    });
});
</script>

</head>
<body>
<?php echo $this->Session->flash();
echo $this->Session->flash('email');
echo $this->Session->flash('auth');?>

<?php echo $content_for_layout; ?>
    
</body>
</html>